/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */


function colocarColor(id){
   var x = document.getElementById("celda"+id);
                               
   x.style.backgroundColor = "greenyellow";  
                                 
}
                             
function quitarColor(id){
      var x = document.getElementById("celda"+id);
                               
      x.style.backgroundColor = "white";  
                                 
}

function iniciarPedido(id){
    var url=window.location.pathname;
    var pathArray = url.split('/');        // <-- no need in "string()"
    
    var newHost = 'pedidoController/hacerPedido/?mesa='+id;
    
        window.location =  newHost;
   
}

